package dingtalkrobot

const dingTalkURL = "https://oapi.dingtalk.com/robot/send?access_token="
const dtmdFormat = "[%s](dtmd://dingtalkclient/sendMessage?content=%s)"
const formatSpliter = "$$"

const (
	// H1 H1
	H1 MarkType = "h1"
	// H2 H2
	H2 MarkType = "h2"
	// H3 H3
	H3 MarkType = "h3"
	// H4 H4
	H4 MarkType = "h4"
	// H5 H5
	H5 MarkType = "h5"
	// H6 H6
	H6 MarkType = "h6"
	// RED RED
	RED MarkType = "red"
	// BLUE BLUE
	BLUE MarkType = "blue"
	// GREEN GREEN
	GREEN MarkType = "green"
	// GOLD GOLD
	GOLD MarkType = "gold"
	// N N
	N MarkType = ""
)

var hMap = map[MarkType]string{
	H1:    "# %s",
	H2:    "## %s",
	H3:    "### %s",
	H4:    "#### %s",
	H5:    "##### %s",
	H6:    "###### %s",
	RED:   "<font color=#ff0000>%s</font>",
	BLUE:  "<font color=#1E90FF>%s</font>",
	GREEN: "<font color=#00CD66>%s</font>",
	GOLD:  "<font color=#FFD700>%s</font>",
}
